(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/house/bill/list" ], {
    "48a3": function(t, e, i) {
        (function(t) {
            i("767a"), n(i("66fd"));
            var e = n(i("b740"));
            function n(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = i, t(e.default);
        }).call(this, i("543d").createPage);
    },
    "6ebd": function(t, n, o) {
        (function(i) {
            function e(e, t) {
                var n, i = Object.keys(e);
                return Object.getOwnPropertySymbols && (n = Object.getOwnPropertySymbols(e), t && (n = n.filter(function(t) {
                    return Object.getOwnPropertyDescriptor(e, t).enumerable;
                })), i.push.apply(i, n)), i;
            }
            Object.defineProperty(n, "__esModule", {
                value: !0
            });
            var t = {
                components: {},
                data: function() {
                    return {
                        currentStatus: 0,
                        tabList: [ {
                            id: 0,
                            name: "全部"
                        }, {
                            id: 1,
                            name: "待付款"
                        }, {
                            id: 2,
                            name: "待确认"
                        }, {
                            id: 6,
                            name: "已付款"
                        }, {
                            id: 4,
                            name: "已取消"
                        } ],
                        emptyData: {
                            tip: "暂无相关数据"
                        },
                        page: 1,
                        list: [],
                        select_ids: []
                    };
                },
                onLoad: function(t) {},
                onShow: function() {
                    this.init();
                },
                computed: function(i) {
                    for (var t = 1; t < arguments.length; t++) {
                        var o = null != arguments[t] ? arguments[t] : {};
                        t % 2 ? e(Object(o), !0).forEach(function(t) {
                            var e, n;
                            e = i, t = o[n = t], n in e ? Object.defineProperty(e, n, {
                                value: t,
                                enumerable: !0,
                                configurable: !0,
                                writable: !0
                            }) : e[n] = t;
                        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(o)) : e(Object(o)).forEach(function(t) {
                            Object.defineProperty(i, t, Object.getOwnPropertyDescriptor(o, t));
                        });
                    }
                    return i;
                }({}, (n.default = void 0, o("26cb").mapState)({
                    basicSet: function(t) {
                        return t.init.basicSet;
                    }
                })),
                methods: {
                    init: function() {
                        this.bill_list();
                    },
                    onReachBottom: function() {
                        this.page++, this.bill_list();
                    },
                    bill_list: function() {
                        var e = this;
                        i.showLoading({
                            title: "加载中"
                        }), this.$api("my.bill_list", {
                            status: e.currentStatus,
                            page: e.page
                        }).then(function(t) {
                            i.hideLoading();
                            t = t.data.list;
                            1 == e.page ? e.list = t : 0 < t.length ? e.list = e.list.concat(t) : e.page = e.page - 1;
                        });
                    },
                    selectTab: function(t) {
                        t != this.currentStatus && (this.currentStatus = t, this.bill_list());
                    },
                    navto_detail: function(t) {
                        this.$Router.push({
                            path: "/pages/house/bill/detail",
                            query: {
                                id: t.id
                            }
                        });
                    },
                    call: function(t) {
                        this.$api("my.billTel", {
                            id: t.id
                        }).then(function(t) {
                            t = t.data.tel;
                            t && i.makePhoneCall({
                                phoneNumber: t
                            });
                        });
                    },
                    confirm: function(t) {
                        this.$Router.push({
                            path: "/pages/work/contract/confirm",
                            query: {
                                id: t.id
                            }
                        });
                    },
                    pay: function(e) {
                        var n = this, t = e.money;
                        i.showModal({
                            title: "确认",
                            content: "支付费用：" + t + "元",
                            confirmText: "付费",
                            success: function(t) {
                                if (t.confirm) i.showLoading({
                                    title: "加载中"
                                }), n.$api("my.payBill", {
                                    id: e.id
                                }).then(function(t) {
                                    i.hideLoading(), 0 === t.errno ? 0 == t.data.code ? (n.$tools.toast("付款成功"), n.init()) : 1 == t.data.code && i.showModal({
                                        title: "提示",
                                        content: t.data.msg,
                                        confirmText: "充值",
                                        success: function(t) {
                                            if (t.confirm) n.$Router.push({
                                                path: "/pages/user/wallet/index",
                                                query: {}
                                            }); else if (t.cancel) return;
                                        }
                                    }) : n.$tools.toast(t.msg);
                                }); else if (t.cancel) return;
                            }
                        });
                    },
                    detail: function(t) {
                        this.$Router.push({
                            path: "/pages/house/lethouse/detail",
                            query: {
                                houseId: t.house_id
                            }
                        });
                    },
                    navToSign: function(t) {
                        this.$Router.push({
                            path: "/pages/work/contract/add",
                            query: {
                                houseId: t.house_id,
                                userId: t.uid
                            }
                        });
                    },
                    see: function(t) {
                        t = t.url;
                        i.showLoading({
                            mask: !0,
                            title: "正在加载"
                        }), i.downloadFile({
                            url: t,
                            success: function(t) {
                                t = t.tempFilePath;
                                i.openDocument({
                                    filePath: t,
                                    showMenu: !0,
                                    success: function(t) {
                                        console.log("打开成功");
                                    },
                                    fail: function(t) {
                                        console.log(t);
                                    }
                                });
                            },
                            fail: function(t) {
                                console.log(t);
                            },
                            complete: function(t) {
                                i.hideLoading();
                            }
                        });
                    },
                    yyCancel: function(t) {
                        var e = this;
                        this.$api("my.yyEdit", {
                            status: 3,
                            id: t
                        }, "post").then(function(t) {
                            0 === t.errno ? (t.data.code, e.yyList()) : e.$tools.toast(t.msg);
                        });
                    }
                }
            };
            n.default = t;
        }).call(this, o("543d").default);
    },
    7483: function(t, e, n) {
        n.r(e);
        var i, o = n("6ebd"), a = n.n(o);
        for (i in o) "default" !== i && function(t) {
            n.d(e, t, function() {
                return o[t];
            });
        }(i);
        e.default = a.a;
    },
    "869a": function(t, e, n) {
        var i = n("c52c");
        n.n(i).a;
    },
    "8e17": function(t, e, n) {
        n.d(e, "b", function() {
            return i;
        }), n.d(e, "c", function() {
            return o;
        }), n.d(e, "a", function() {});
        var i = function() {
            this.$createElement;
            this._self._c;
        }, o = [];
    },
    b740: function(t, e, n) {
        n.r(e);
        var i, o = n("8e17"), a = n("7483");
        for (i in a) "default" !== i && function(t) {
            n.d(e, t, function() {
                return a[t];
            });
        }(i);
        n("869a");
        var c = n("f0c5"), o = Object(c.a)(a.default, o.b, o.c, !1, null, null, null, !1, o.a, void 0);
        e.default = o.exports;
    },
    c52c: function(t, e, n) {}
}, [ [ "48a3", "common/runtime", "common/vendor" ] ] ]);